<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.List"%>
<%@page import="cn.company.bean.Culture"%>
<%@page import="cn.company.bean.Sort"%>
<%@page import="cn.company.database.DBUtils"%>
<%@page import="cn.company.bean.SubSort"%>
<%@page import="cn.company.bean.Advertising"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	List<Sort> sorts = DBUtils.getSortsByModuleId(4);
	String path = request.getContextPath();
%>
</head>
<body>
		<div class="mainleft">
        	<div class="mainleft_top"></div>
            <div class="mainleftmain">
            	<%
            		for(int i = 0;i < sorts.size();i++){
            	%>
            		<h3><%=sorts.get(i).getSortName() %></h3>
            	<%	
            			List<SubSort> subsorts = DBUtils.getSubSortsBySortId(sorts.get(i).getId());
            	%>
            			<ul>
            				<%
            					for(int j = 0;j < subsorts.size();j++){
            				%>
            						<li><a href="<%=path %>/Company/culture/culture_list.jsp?id=<%=subsorts.get(j).getId() %>"><%=subsorts.get(j).getSubsortName() %></a></li>
            				<%		
            					}
            				%>
            			</ul>
            	<%
            		}
            	%>
            </div>
			<div class="mainleft_bot"></div>
			<div class="flash_advis">
				<%
                        		List<Advertising> advs = DBUtils.getAdvsByType("企业文化左下角广告");
                        		for(int i = 0;i < advs.size();i++){
                        	%>
                        			 <li>
			                            <img src="<%=path %>/<%=advs.get(i).getImagepath() %>"  />
			                            <p align="center"><%=advs.get(i).getAdvName() %></p>
		                             </li>
                        	<%		
                        		}
                        	%>
			</div>
        </div>
</body>
</html>